﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace UI.Desktop
{
    public partial class frmGestionProfesional : Form
    {
        public frmGestionProfesional()
        {
            InitializeComponent();
        }

       
        private void btnCerrarTurnos_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void btnBuscar_Click(object sender, EventArgs e)
        {
            try
            {

                Business.Entities.Profesional Prof = new Business.Entities.Profesional();
                DataTable dtProf = new DataTable();
                string dni = txtProfesional.Text;

                dtProf = Prof.ObtenerProfesionalConNombreyApellido(dni);
                dtProfesional.DataSource = dtProf;
                
            }

            catch
            {
                MessageBox.Show("No se econtro el Profesional", "Advertencia", MessageBoxButtons.OK, MessageBoxIcon.Warning);
            }
            
            

        }

        private void btnEliminarTurno_Click(object sender, EventArgs e)
        {
            Business.Entities.Profesional Prof = new Business.Entities.Profesional();
            DataSet dsprof = new DataSet();


           
        }
    
    
    
    
    
    }
}
